package com.ruoyi.book.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 tb_book_borrow
 * 
 * @author ruoyi
 * @date 2023-01-11
 */
public class TbBookBorrow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 教材ID */
    @Excel(name = "教材ID")
    private Long bookId;

    /** 教材名称 */
    @Excel(name = "教材名称")
    private String bookName;

    /** 借阅人 */
    @Excel(name = "借阅人")
    private String person;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 借阅日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借阅日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowDate;

    /** 借阅数量 */
    @Excel(name = "借阅数量")
    private Long borrowMount;

    /** 是否归还 */
    @Excel(name = "是否归还")
    private Long still;

    /** 归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stillDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setBookName(String bookName) 
    {
        this.bookName = bookName;
    }

    public String getBookName() 
    {
        return bookName;
    }
    public void setPerson(String person) 
    {
        this.person = person;
    }

    public String getPerson() 
    {
        return person;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setBorrowDate(Date borrowDate) 
    {
        this.borrowDate = borrowDate;
    }

    public Date getBorrowDate() 
    {
        return borrowDate;
    }
    public void setBorrowMount(Long borrowMount) 
    {
        this.borrowMount = borrowMount;
    }

    public Long getBorrowMount() 
    {
        return borrowMount;
    }
    public void setStill(Long still) 
    {
        this.still = still;
    }

    public Long getStill() 
    {
        return still;
    }
    public void setStillDate(Date stillDate) 
    {
        this.stillDate = stillDate;
    }

    public Date getStillDate() 
    {
        return stillDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("bookName", getBookName())
            .append("person", getPerson())
            .append("phone", getPhone())
            .append("borrowDate", getBorrowDate())
            .append("borrowMount", getBorrowMount())
            .append("still", getStill())
            .append("stillDate", getStillDate())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
